@walletconnect/client@1.x.x
,
you should be able to add @walletconnect/sign-client@2.x.x
without any issues.If you experience dependency clashes or you require both @walletconnect/types@1.x.x
and @walletconnect/types@2.x.x
in parallel
in your wallet’s top-level dependencies, please refer to the legacy
packages which were published explicitly for this purpose.In the above scenario, you would replace @walletconnect/types@1.x.x
with @walletconnect/legacy-types
and then install @walletconnect/types@2.x.x
.session_delete
event is emitted, it makes sense to change the UI from an active session state to
an inactive/disconnected state.1. Add listeners for desired SignClient
events.namespaces
parameter is used to specify the namespaces and chains that are intended to be used in the session. The following is an example:uri
uri
received from the dapp into the signClient.core.pairing.pair()
function.signClient.pair()
) directly on signClient
will continue to work, but is considered deprecated and will be removed in a future major version.It is recommended to instead call these methods directly via the Pairing API., e.g.: signClient.core.pairing.pair()
.uri
into the signClient.pair()
function. A useful reference for implementing QR codes for pairing is the react wallet example.session_authenticate
event. This will notify you of any authentication requests that need to be processed, allowing you to either approve or reject them based on your application logic.